package com.xbenben.demoroot.bean;

import lombok.Getter;


/**
 * @author xbenbenx
 * Date:2022/8/15 22:50
 **/
@Getter
public enum ResultCodeEnum {
    /**
     *
     */

    SUCCESS(true, 20000, "成功"),
    BAD_SQL_GRAMMAR(false, 21001, "sql语法错误"),
    JSON_PARSE_ERROR(false, 21002, "json解析异常"),
    PARAM_ERROR(false, 21003, "参数不正确"),
    UNKNOWN_REASON(false, 20001, "未知错误"),
    SERVER_ERROR(false, 500, "服务器忙，请稍后在试"),
    ORDER_CREATE_FAIL(false, 601, "订单下单失败");
    private final Boolean success;
    private final Integer code;
    private final String message;

    ResultCodeEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

}